const fs = require("fs")
const path = require('path')

module.exports = (url) => {

  let fullpath = "";
  switch (url) {
    case "/":
      fullpath = "./index.html"
      break;
    case "/common.css":
      fullpath = "./common.css"
      break;
  }

  return fs.readFileSync(path.join(__dirname,fullpath))
}